package gameEngine;

import exceptions.IncorrectInputException;


public class Dot {
		private int dotRowCoordinate;
		private int dotColCoordinate;
		private Line rightLine,upLine;
		public static final char dotSign = '*';
		
		Dot(int dotRowCoordinate, int dotColCoordinate) throws IncorrectInputException{
			setDotColCoordinate(dotColCoordinate);
			setDotRowCoordinate(dotRowCoordinate);
		}
		
		
		
		/*
		 * Just SETTERS AND GETTERS
		 * Start from here:
		 */
		private void setDotRowCoordinate(int dotRowCoordinate) throws IncorrectInputException {
			if(dotRowCoordinate>=0){
				this.dotRowCoordinate = dotRowCoordinate;
			}else{
				throw new IncorrectInputException("Trying to set bad dot coordinate.");
			}
		}


		private void setDotColCoordinate(int dotColCoordinate) throws IncorrectInputException {
			if(dotColCoordinate>=0){
				this.dotColCoordinate = dotColCoordinate;
			}else{
				throw new IncorrectInputException("Trying to set bad dot coordinate.");
			}
		}

		public int getDotRowCoordinate() {
			return dotRowCoordinate;
		}


		public int getDotColCoordinate() {
			return dotColCoordinate;
		}

		public Line getRightLine() {
			return rightLine;
		}


		public void setRightLine(Line rightLine) {
			this.rightLine = rightLine;
		}


		public Line getUpLine() {
			return upLine;
		}


		public void setUpLine(Line upLine) {
			this.upLine = upLine;
		}
		/*GETTERS AND SETTERS END HERE
		 * 
		 */
		

	

	}
